Mollie\WooCommerce\Payment\PaymentService B

Total Complexity 94
Dependencies 16
Dependents 6
Total lines 824
Lines of code 498
Logical lines of code 230
Comment lines 150
Methods 26
Properties 10

Methods 26

Method Rating Maintainability Complexity Lines of code
processAsMollieOrder()
B
36 15 89
processAsMolliePayment()
A
46 11 41
correctSurchargeFee()
A
46 8 39
processPayment()
A
43 7 52
updateOrderStatus()
A
54 8 21
paymentTypeBasedOnProducts()
S
51 5 31
processSubscriptionSwitch()
S
57 4 16
updatePaymentStatusForDelayedMethods()
S
61 4 12
processPaymentForMollie()
S
54 3 25
processValidMandate()
S
56 3 18
paymentTypeBasedOnGateway()
S
63 4 10
needsSubscriptionSwitch()
S
69 4 6
reportPaymentCreationFailure()
S
62 3 11
reportPaymentSuccess()
S
56 2 19
saveSubscriptionMandateData()
S
59 2 13
subsSwitchCompleted()
S
59 1 16
noValidMandateForSubsSwitchFailure()
S
61 1 15
__construct()
S
63 1 11
processInitialOrderStatus()
S
64 1 11
setGateway()
S
81 1 3
getUserMollieCustomerId()
S
73 1 5
getProcessPaymentRedirect()
S
67 1 9
orderAddFee()
S
66 1 9
removeOrderFee()
S
72 1 6
paymentObjectFailure()
S
75 1 4
saveMollieInfo()
S
70 1 6